import {jwtServerInstance} from "../index";
import qs from	'qs'


//查询接口
export const getCommonlyUseds = (queryform,pagination) => {
    return jwtServerInstance.request({
      url:'/commonlyused/query',
      method:'post',
      data:qs.stringify({
        id: queryform.id,
        webUrl: queryform.webUrl,
        webName: queryform.webName,
        webDesc: queryform.webDesc,
        pageNum: pagination.pageNum,
        pageSize: pagination.pageSize
      })
    })
  }

//新增一条commonlyused数据记录
export const addCommonlyUsed = (dialogForm) => {
    return jwtServerInstance.request({
        url:'/commonlyused/add',
        method:'post',
        data:dialogForm
    })
}

//更新一条commonlyused数据记录
export const updateCommonlyUsed = (dialogForm) => {
    return jwtServerInstance.request({
        url:'/commonlyused/update',
        method:'post',
        data:dialogForm
    })
}

//删除一条commonlyused数据记录
export const deleteCommonlyUsed = (id) => {
    console.log()
    return jwtServerInstance.request({
        url:'/commonlyused/delete',
        method:'post',
        data:qs.stringify({
            id:id
        })
    })
}